<template>
  <div class="resource">
    <div class="bg">
      <img src="@/assets/images/我的/xxxx-2@2x.png" alt="" />
      <div class="data">
        <van-nav-bar title="" left-arrow @click-left="backMine" />
        <div class="data-t">
          <van-image
            round
            width="64"
            height="60"
            fit="cover"
            :src="require('@/assets/images/我的/xxxx-2@2x.png')"
          />
          <div class="btn" @click="goResource">编辑资料</div>
        </div>
        <p class="name">莉雅kk</p>
        <div class="count">
          <div class="money">
            <p>0</p>
            <span>动态</span>
          </div>
          <div class="money">
            <p>0</p>
            <span>关注</span>
          </div>
          <div class="money">
            <p>0</p>
            <span>粉丝</span>
          </div>
          <div class="money">
            <p>0</p>
            <span>获赞</span>
          </div>
        </div>
      </div>
    </div>
    <div class="medal">
      <div class="mymedal">
        <span class="f125">我的勋章</span>
      </div>
      <div class="line"></div>
      <div class="study">
        <div class="f125">最近在学</div>
        <div class="book">
          <div class="img">
            <img src="@/assets/images/我的/xxxx-6@2x.png" alt="" />
            <span class="bookName">西南联大求学日记</span>
          </div>

          <div class="img">
            <img src="@/assets/images/我的/xxxx-7@2x.png" alt="" />
            <span class="bookName">光环效应</span>
          </div>
          <div class="img">
            <img src="@/assets/images/我的/xxxx-8@2x.png" alt="" />
            <span class="bookName">高效能人士的7个习惯</span>
          </div>
        </div>
      </div>
    </div>
    <div class="line"></div>
    <div class="answer">
      <div class="title">回答·</div>
      <div class="an-ctn">
        <div class="mine">
          <img src="@/assets/images/我的/xxxx-2@2x.png" alt="" />
          <div>
            <p class="name">莉雅kk</p>
            <div class="time">今天21:15</div>
          </div>
        </div>
        <div class="question">
          你记忆中印象最深的一个暑假是怎样的？如果你有孩子，你会希望如何安排他的暑假？
        </div>
        <div class="reply">我没有孩子，我不知道</div>
        <div class="outPrise">
          <div class="prise">
            <img src="@/assets/images/我的/xxxx-10@2x.png" alt="" />
            赞同
            <div></div>
            <img src="@/assets/images/我的/xxxx-11@2x.png" alt="" />
          </div>
        </div>
      </div>
    </div>
    <div class="bottom">页面有尽头,学习无止境</div>
  </div>
</template>

<script>
import { useRouter } from "vue-router";
export default {
  setup() {
    const router = useRouter();
    const backMine = () => {
      router.push("/home/mine");
    };
    const goResource = () => {
      router.push("/compile");
    };
    return {
      backMine,
      goResource,
    };
  },
};
</script>

<style lang="less" scoped>
.van-hairline--bottom:after {
  border-bottom-width: 0px;
}
.van-nav-bar__content {
  border-bottom: none;
}
/deep/ .van-nav-bar .van-icon {
  color: #fff !important;
}
/deep/ .van-nav-bar {
  background-color: rgba(0, 0, 0, 0);
}
.van-icon {
  width: 11px;
  height: 18px;
}
.f125 {
  font-size: 12.5px;
  color: #000000;
}
.resource {
  font-family: PingFangSC;
  font-weight: 800;
  position: relative;
  .line {
    height: 8px;
    background: #eeeeee;
  }
  .medal {
    padding: 13px;
    border-radius: 10px 10px 0px 0px;
    .mymedal {
      margin: 10px 0 25px 0;
      display: flex;
      justify-content: space-between;
    }
    .line {
      background-color: #ebebeb;
      height: 1px;
      margin-bottom: 15px;
    }
    .study {
      .f125 {
        margin-bottom: 15px;
      }
      .book {
        display: flex;
        overflow: auto;
        .img {
          margin-right: 21px;
          display: flex;
          flex-direction: column;
          img {
            width: 70px;
            margin-bottom: 8px;
            height: 80px;
          }
          .bookName {
            color: #62605f;
            font-size: 10px;
            width: 70px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
          }
        }
      }
    }
  }
  .bottom {
    height: 54px;
    background-color: #eeeeee;
    line-height: 54px;
    text-align: center;
    font-size: 13px;
    font-weight: bold;
    font-family: "宋体";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -54px;
  }
  .answer {
    padding: 5px 15px 20px;
    .title {
      color: #000000;
      font-size: 16px;
      margin-bottom: 20px;
    }
    .outPrise {
      width: 100%;
      display: flex;
      justify-content: flex-end;
    }
    .mine {
      display: flex;
      align-items: center;
      > div {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        .name {
          color: #000000;
          font-size: 10px;
        }
        .time {
          font-size: 9px;
          color: #9d9d9d;
        }
      }
      img {
        width: 31px;
        height: 31px;
        margin-right: 8px;
      }
    }
    .question {
      width: 310px;
      height: 66px;
      margin-left: 39px;
      border: 1px solid #eeeeee;
      border-radius: 5px;
      font-size: 14px;
      color: #4f4c4b;
      padding: 14px 20px 13px 10px;
      margin-bottom: 14px;
    }
    .reply {
      margin-bottom: 20px;
      font-size: 12px;
      color: #4f4c4b;
      margin-left: 39px;
    }
    .prise {
      width: 85px;
      height: 26px;
      color: #919191;
      font-size: 12px;
      border: 1px solid #eeeeee;
      border-radius: 13px;
      display: flex;
      align-items: center;
      justify-content: space-around;
      text-align: right;
      > div {
        width: 1px;
        height: 12px;
        background: #eeeeee;
      }
      img {
        width: 12px;
        height: 11px;
      }
    }
  }
}
.bg {
  position: relative;
  height: 200px;
  background-color: rgba(0, 0, 0, 0.5);
  overflow: hidden;
  img {
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    filter: blur(25px);
    z-index: 1;
  }
  .data {
    position: absolute;
    top: 0;
    z-index: 2;
    width: 100%;
    .data-t {
      display: flex;
      justify-content: space-between;
      height: 60px;
      align-items: center;
      margin-left: 15px;
      margin-right: 15px;
      .btn {
        width: 62.5px;
        height: 25.5px;
        border: 1px solid #ffffff;
        border-radius: 12.5px;
        color: #fefefe;
        font-size: 12.5px;
        display: flex;
        align-items: center;
        justify-content: center;
      }
    }
    .name {
      color: #ffffff;
      font-size: 14px;
      margin-left: 15px;
    }
  }
}
.count {
  height: 71.5px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin-bottom: 15px;
  div {
    color: #d6d8d7;
    p {
      font-size: 14px;
      line-height: 18px;
      text-align: center;
    }
    span {
      font-size: 12px;
      line-height: 18px;
    }
  }
}
</style>
